package leo;

import org.quartz.Job;
import java.util.Date;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class GenericJob implements Job {

	public void execute(JobExecutionContext context)
			throws JobExecutionException {
		//Start time...
		String job = context.getJobDetail().getName();
		if (job.equals("job01")){
			System.out.println("$$$$$ exec job011111" + new Date());
			//recuperar no BD o job em ordem de execucao
			
			//exec todos em loop e em uma transacao
			//delete(DST) from ...
			//select(ORI) com include|update(DST) - 
			
			
			
		}else{
			System.out.println("$$$$$ exec job022222" + new Date());
			
		}
		
		//Fim time...
	}

}
